package cn.xiyue.production.ui;

import android.os.Bundle;

import cn.xiyue.production.R;
import cn.xiyue.production.base.CallableActivity;
import cn.xiyue.production.bean.Material;

public class SupplyActivity extends CallableActivity {

    private SmartTableView stv_list;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_supply);
        initView();
    }

    private void initView() {
        stv_list = (SmartTableView) findViewById(R.id.stv_supply);
        async(requestApi.getMaterial(),value -> stv_list.setData(value.getData(),Material.class));
    }
}